how a REST API works with Consumes